package com.xujicheng.designpattern.learn.strategyPattern.pattern;

public class Client {
    public static void main(String[] args) {
        MovieTicket movieTicket = new MovieTicket();
        double originalPrice = 60.0;
        double currentPrice ;
        movieTicket.setPrice(originalPrice);
        movieTicket.setDiscount(new ChildrenDiscount());

        System.out.println("原始价为：" + originalPrice);
        System.out.println("---------------------------------");

        currentPrice = movieTicket.getPrice();
        System.out.println("折后价为：" + currentPrice);

    }

}
